home *** CD-ROM | disk | FTP | other *** search
/ Hobby PC 11 / Hobby PC 11.iso / lotuspro / compnent / lsconst.lss < prev    next >
Text File  |  1997-04-06  |  7KB  |  143 lines

  1. '-----------------------------------------------------------------------------
  2. '    File:        LSCONST.LSS
  3. '    Copyright (c) 1993 Lotus Development Corporation
  4. '
  5. '    Description: LotusScript Global Constants.
  6. '
  7. '-----------------------------------------------------------------------------
  8.  
  9. '-----------------------------------------------------------------------------
  10. ' Variant DataType Values
  11. '-----------------------------------------------------------------------------
  12.  
  13. Public Const V_EMPTY = 0                    ' Empty variant
  14. Public Const V_NULL = 1                        ' Variant containing Null
  15. Public Const V_INTEGER = 2                    ' Integer
  16. Public Const V_LONG = 3                        ' Long integer (4 bytes)
  17. Public Const V_SINGLE = 4                    ' Single
  18. Public Const V_DOUBLE = 5                    ' Double
  19. Public Const V_CURRENCY = 6                ' Currency
  20. Public Const V_DATE = 7                        ' Date value
  21. Public Const V_STRING = 8                    ' String
  22. Public Const V_DISPATCH = 9            ' OLE object
  23. Public Const V_ERROR = 10              ' ERROR (from OLE only)
  24. Public Const V_BOOLEAN = 11            ' BOOLEAN (from OLE only)
  25. Public Const V_VARIANT = 12            ' VARIANT array or list
  26. Public Const V_IUNKNOWN = 13           ' OLE unknown object
  27. Public Const V_UNISTR = 14                    ' OLE unicode string
  28. Public Const V_CLIENTHDL = 32                ' LotusScript client adt handle
  29. Public Const V_TYPEINST = 33                ' LotusScript TYPE instance
  30. Public Const V_LSOBJ = 34              ' LotusScript object
  31. Public Const V_PRODOBJ = 35            ' Product object
  32.  
  33. Public Const V_BYREF   = &h4000            ' By Refrence
  34. Public Const V_ARRAY   = &h2000            ' Array
  35. Public Const V_LIST    = &h0800            ' List
  36. Public Const V_DYNAMIC = &h0200            ' Dynamic (with V_ARRAY)
  37.  
  38. '-----------------------------------------------------------------------------
  39. ' MsgBox parameters
  40. '-----------------------------------------------------------------------------
  41.  
  42. Public Const MB_OK = 0                 ' OK button only
  43. Public Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  44. Public Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  45. Public Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  46. Public Const MB_YESNO = 4              ' Yes and No buttons
  47. Public Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  48.  
  49. Public Const MB_ICONSTOP = 16          ' Critical message
  50. Public Const MB_ICONQUESTION = 32      ' Warning query
  51. Public Const MB_ICONEXCLAMATION = 48   ' Warning message
  52. Public Const MB_ICONINFORMATION = 64   ' Information message
  53.  
  54. Public Const MB_APPLMODAL = 0               ' Application Modal Message Box
  55. Public Const MB_DEFBUTTON1 = 0          ' First button is default
  56. Public Const MB_DEFBUTTON2 = 256       ' Second button is default
  57. Public Const MB_DEFBUTTON3 = 512       ' Third button is default
  58. Public Const MB_SYSTEMMODAL = 4096     ' System Modal
  59.  
  60. '-----------------------------------------------------------------------------
  61. ' MsgBox return values
  62. '-----------------------------------------------------------------------------
  63.  
  64. Public Const IDOK = 1                  ' OK button pressed
  65. Public Const IDCANCEL = 2              ' Cancel button pressed
  66. Public Const IDABORT = 3               ' Abort button pressed
  67. Public Const IDRETRY = 4               ' Retry button pressed
  68. Public Const IDIGNORE = 5              ' Ignore button pressed
  69. Public Const IDYES = 6                 ' Yes button pressed
  70. Public Const IDNO = 7                  ' No button pressed
  71.  
  72. '-----------------------------------------------------------------------------
  73. ' SetAttr, Dir, GetAttr functions
  74. '-----------------------------------------------------------------------------
  75.  
  76. Public Const ATTR_NORMAL = 0                ' Normal files
  77. Public Const ATTR_READONLY = 1            ' Read-only files
  78. Public Const ATTR_HIDDEN = 2                ' Hidden files
  79. Public Const ATTR_SYSTEM = 4                ' System-attribute set
  80. Public Const ATTR_VOLUME = 8                ' Volume label
  81. Public Const ATTR_DIRECTORY = 16            ' Directory
  82. Public Const ATTR_ARCHIVE = 32            ' Archive bit set 
  83.  
  84. '-----------------------------------------------------------------------------
  85. ' FileAttr function
  86. '-----------------------------------------------------------------------------
  87.  
  88. Public Const ATTR_MODE = 1                    ' Return mode of file (below)
  89. Public Const ATTR_HANDLE = 2                ' Return OS handle for file
  90.  
  91. Public Const ATTR_INPUT = 1                  ' File opened for Input mode
  92. Public Const ATTR_OUTPUT = 2                ' File opened for Output mode
  93. Public Const ATTR_RANDOM = 4                ' File opened for Random mode
  94. Public Const ATTR_APPEND = 8                ' File opened for Append mode
  95. Public Const ATTR_BINARY = 32                ' File opened for Binary mode
  96.  
  97. '-----------------------------------------------------------------------------
  98. ' Shell Window Style
  99. '-----------------------------------------------------------------------------
  100.  
  101. Public Const SHELL_NORMAL_FOCUS = 1        ' Normal, with focus
  102. Public Const SHELL_MIN_FOCUS = 2            ' Minimized, with focus (default)
  103. Public Const SHELL_MAX_FOCUS = 3            ' Maximized, with focus
  104. Public Const SHELL_NORMAL_NO_FOCUS = 4    ' Normal, no focus
  105. Public Const SHELL_MIN_NO_FOCUS = 6        ' Minimized, no focus
  106.  
  107. '-----------------------------------------------------------------------------
  108. ' IMEStatus values
  109. '-----------------------------------------------------------------------------
  110.  
  111. Public Const IME_NOT_INSTALLED    = 0        ' value for all non-Asian countries
  112.  
  113. Public Const IME_ON                    = 1        ' Asia
  114. Public Const IME_OFF                    = 2        ' Asia
  115.  
  116. Public Const IME_HIRAGANA            = 4        ' Japan
  117. Public Const IME_KATAKANA_DBCS    = 5        ' Japan
  118. Public Const IME_KATAKANA_SBCS   = 6        ' Japan
  119.  
  120. Public Const IME_HANGEUL            = 4        ' Korea
  121. Public Const IME_HANJACONVERT        = 5        ' Korea
  122.  
  123. Public Const IME_ALPHA_DBCS        = 7        ' Asia
  124. Public Const IME_ALPHA_SBCS        = 8        ' Asia
  125.  
  126. '-----------------------------------------------------------------------------
  127. ' StrConv values
  128. '-----------------------------------------------------------------------------
  129.  
  130. Public Const SC_UPPERCASE            = 1        ' convert to uppercase
  131. Public Const SC_LOWERCASE            = 2        ' convert to lowercase
  132. Public Const SC_PROPERCASE            = 3        ' convert to propercase
  133. Public Const SC_WIDE                    = 4        ' convert narrow to wide
  134. Public Const SC_NARROW                = 8        ' convert wide to narrow
  135. Public Const SC_KATAKANA            = 16        ' convert Hiragana to Katakana
  136. Public Const SC_HIRAGANA            = 32        ' convert Katakana to Hiragana
  137.  
  138. '-----------------------------------------------------------------------------
  139. ' Values for the builtin GETTHREADINFO
  140. '-----------------------------------------------------------------------------
  141.  
  142. %Include "lsprcval.lss"
  143.